package cn.wolfcode.service;

import cn.wolfcode.domain.SeckillProduct;
import cn.wolfcode.domain.SeckillProductVo;

import java.util.List;


public interface ISeckillProductService {
    /**
     * 查询秒杀商品集合
     *
     * @param type 类型
     * @return {@link List}<{@link SeckillProductVo}>
     */
    List<SeckillProductVo> selectByTypes(int type);

    List<SeckillProductVo> queryByTime(int time);

    SeckillProductVo queryById(int time, Long seckillId);

    /**
     * 回滚真实库存
     * @param time
     * @param seckillId
     */
    void replenishmentOfInventory(Integer time, Long seckillId);
}
